package com.smartStatus.admin.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @ClassName : SysfileService
 * @Author : lby
 * @Date: 2021/3/2 17:00
 * @Description :
 */
public interface SysFileService {
    Map<String, String> uploadFile(MultipartFile file);

    void getFile(String bucketName, String fileName, HttpServletResponse response);


    /**
     * 获取文件地址
     *
     * @param bucketName
     * @param fileName
     * @return
     */
    String getImageUrl(String bucketName, String fileName);
}
